package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface NewRepository extends JpaRepository<New,Integer> {

    List<New> findByType(Byte type);

    List<New> findByStatus(Byte status);

    List<New> findByTypeAndStatus(Byte type, Byte status);
}
